<%-- 
    Document   : AdminOptions
    Created on : Nov 17, 2013, 4:51:24 PM
    Author     : smarzoug
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body bgcolor="wheat">
  <div align="center"><span class="style1"><span class="style2"><h1>W E L C O M E T O T H E U N I V A R S I T Y </h1><br/><br/><h1>A D M I N I S T R A T I O N</h1>
</span></span></div>
  
  
<center>
<%@ page import="com.dts.uas.dao.AcadamicDAO"%>
<%String name=request.getParameter("adminname");
String pass=request.getParameter("adminpass"); 
AcadamicDAO aAcadamicDAO=new AcadamicDAO();
 boolean flag=aAcadamicDAO.checkLoginAdmin(name,pass);
if(flag)
{%>
<table border="1"><tr><td>
<span class="style1"><span class="style2"><%out.println("<a href=./Viewregistrations1.jsp>View Registrations</a>");%></span></span><br/><br/></td></tr>
<tr><td><span class="style1"><span class="style2"><% out.println("<a href=./Viewacceptedregistrations.jsp>Issue Hall Ticket</a>");%></span></span><br/><br/></td></tr>
<tr><td><span class="style1"><span class="style2"><%out.println("<a href=ExamSchdule1.jsp>Schedule Exam</a>");%></span></span><br/><br/></td></tr>
<tr><td><span class="style1"><span class="style2"><%out.println("<a href=Adminhome.jsp>Logout</a>");%></span></span><br/><br/></td></tr></table>
<%}
else
{
String target="Adminhome.jsp?status=Invalid User"+name;
RequestDispatcher rd=request.getRequestDispatcher(target);
rd.forward(request,response);
}
%>      </center>      
                        </body>
</html>
